-- GENERATED SPELL FOR [Wastes Scavenger] --


function spell0_28005(pUnit, Event) --@Bone Toss,n/a--
pUnit:FullCastSpellOnTarget(50403,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28005', 500, 1)
end

function Sorts_28005(pUnit, Event)
local choix_sorts_28005 = math.random(0, 0)
if choix_sorts_28005 == 0 then
pUnit:RegisterEvent('spell0_28005', 1, 1)
end
end

function mob28005_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28005', math.random(1500, 3000), 1)
end

function mob28005_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28005_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28005_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28005, 1, 'mob28005_Action')
RegisterUnitEvent(28005, 2, 'mob28005_Leave')
RegisterUnitEvent(28005, 3, 'mob28005_Kill')
RegisterUnitEvent(28005, 4, 'mob28005_Die')
